﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000221 RID: 545
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueDiceSurfaceInfo : IMessage<ChessRogueDiceSurfaceInfo>, IMessage, IEquatable<ChessRogueDiceSurfaceInfo>, IDeepCloneable<ChessRogueDiceSurfaceInfo>, IBufferMessage
	{
		// Token: 0x17000726 RID: 1830
		// (get) Token: 0x06001873 RID: 6259 RVA: 0x00045DCD File Offset: 0x00043FCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueDiceSurfaceInfo> Parser
		{
			get
			{
				return ChessRogueDiceSurfaceInfo._parser;
			}
		}

		// Token: 0x17000727 RID: 1831
		// (get) Token: 0x06001874 RID: 6260 RVA: 0x00045DD4 File Offset: 0x00043FD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueDiceSurfaceInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000728 RID: 1832
		// (get) Token: 0x06001875 RID: 6261 RVA: 0x00045DE6 File Offset: 0x00043FE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueDiceSurfaceInfo.Descriptor;
			}
		}

		// Token: 0x06001876 RID: 6262 RVA: 0x00045DED File Offset: 0x00043FED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDiceSurfaceInfo()
		{
		}

		// Token: 0x06001877 RID: 6263 RVA: 0x00045DF5 File Offset: 0x00043FF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDiceSurfaceInfo(ChessRogueDiceSurfaceInfo other) : this()
		{
			this.diceSlotId_ = other.diceSlotId_;
			this.diceSurfaceId_ = other.diceSurfaceId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001878 RID: 6264 RVA: 0x00045E26 File Offset: 0x00044026
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDiceSurfaceInfo Clone()
		{
			return new ChessRogueDiceSurfaceInfo(this);
		}

		// Token: 0x17000729 RID: 1833
		// (get) Token: 0x06001879 RID: 6265 RVA: 0x00045E2E File Offset: 0x0004402E
		// (set) Token: 0x0600187A RID: 6266 RVA: 0x00045E36 File Offset: 0x00044036
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DiceSlotId
		{
			get
			{
				return this.diceSlotId_;
			}
			set
			{
				this.diceSlotId_ = value;
			}
		}

		// Token: 0x1700072A RID: 1834
		// (get) Token: 0x0600187B RID: 6267 RVA: 0x00045E3F File Offset: 0x0004403F
		// (set) Token: 0x0600187C RID: 6268 RVA: 0x00045E47 File Offset: 0x00044047
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DiceSurfaceId
		{
			get
			{
				return this.diceSurfaceId_;
			}
			set
			{
				this.diceSurfaceId_ = value;
			}
		}

		// Token: 0x0600187D RID: 6269 RVA: 0x00045E50 File Offset: 0x00044050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueDiceSurfaceInfo);
		}

		// Token: 0x0600187E RID: 6270 RVA: 0x00045E5E File Offset: 0x0004405E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueDiceSurfaceInfo other)
		{
			return other != null && (other == this || (this.DiceSlotId == other.DiceSlotId && this.DiceSurfaceId == other.DiceSurfaceId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600187F RID: 6271 RVA: 0x00045E9C File Offset: 0x0004409C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.DiceSlotId != 0U)
			{
				num ^= this.DiceSlotId.GetHashCode();
			}
			if (this.DiceSurfaceId != 0U)
			{
				num ^= this.DiceSurfaceId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001880 RID: 6272 RVA: 0x00045EF4 File Offset: 0x000440F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001881 RID: 6273 RVA: 0x00045EFC File Offset: 0x000440FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001882 RID: 6274 RVA: 0x00045F08 File Offset: 0x00044108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DiceSlotId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.DiceSlotId);
			}
			if (this.DiceSurfaceId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.DiceSurfaceId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001883 RID: 6275 RVA: 0x00045F60 File Offset: 0x00044160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.DiceSlotId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DiceSlotId);
			}
			if (this.DiceSurfaceId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DiceSurfaceId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001884 RID: 6276 RVA: 0x00045FB8 File Offset: 0x000441B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueDiceSurfaceInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.DiceSlotId != 0U)
			{
				this.DiceSlotId = other.DiceSlotId;
			}
			if (other.DiceSurfaceId != 0U)
			{
				this.DiceSurfaceId = other.DiceSurfaceId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001885 RID: 6277 RVA: 0x00046008 File Offset: 0x00044208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001886 RID: 6278 RVA: 0x00046014 File Offset: 0x00044214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.DiceSurfaceId = input.ReadUInt32();
					}
				}
				else
				{
					this.DiceSlotId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000A35 RID: 2613
		private static readonly MessageParser<ChessRogueDiceSurfaceInfo> _parser = new MessageParser<ChessRogueDiceSurfaceInfo>(() => new ChessRogueDiceSurfaceInfo());

		// Token: 0x04000A36 RID: 2614
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000A37 RID: 2615
		public const int DiceSlotIdFieldNumber = 1;

		// Token: 0x04000A38 RID: 2616
		private uint diceSlotId_;

		// Token: 0x04000A39 RID: 2617
		public const int DiceSurfaceIdFieldNumber = 14;

		// Token: 0x04000A3A RID: 2618
		private uint diceSurfaceId_;
	}
}
